const request = require('./request')

async function getOneChunk(id) {
  return request({
    url: '/key-chunk/getOne',
    method: 'get',
    params: {
      id,
      t: Date.now()
    }
  })
}

async function putOneChunk(data) {
  return request({
    url: '/key-chunk',
    method: 'put',
    data
  })
}






module.exports = {
  getOneChunk,
  putOneChunk
}